import {
	createSSRApp
} from 'vue'
import App from './App'
import NavBar from '/components/NavBar.vue'
import uviewPlus from '@/uni_modules/uview-plus'

import * as Pinia from 'pinia';

export function createApp() {
	const app = createSSRApp(App)
	app.component('NavBar', NavBar)
	app.use(uviewPlus)

	app.use(Pinia.createPinia());

	return {
		app,
		Pinia
	}
}